import React from 'react';
import './index.css'
import {connect} from 'react-redux'
import {recommend} from '../../store/recommend.redux'
import Show from './show'
@connect(
  (state) => (
    {
      radioList:state.recommend.radioList,
      slider:state.recommend.slider,
    }
  ),{
    recommend
  }
)
class Recommend extends React.Component{
  constructor(props){
    super(props);
  }
  componentDidMount(){
    this.props.recommend();
  }
  render(){
    return <Show radioList={this.props.radioList} slider={this.props.slider}></Show>
  }
}

export default Recommend;